import { S } from '../../s';
import { IPSDEDQFieldCondition } from './ipsdedqfield-condition';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEDQFieldConditionImpl
  extends PSModelObjectImpl
  implements IPSDEDQFieldCondition
{
  get condOp(): string {
    return this.M.condOp;
  }

  get condType(): 'GROUP' | 'SINGLE' | 'CUSTOM' | 'PREDEFINED' {
    return this.M.condType;
  }

  get condValue(): string {
    return this.M.condValue;
  }

  get fieldName(): string {
    return this.M.fieldName;
  }

  getPSVARTypeId(): string {
    return this.M.getPSVARTypeId;
  }

  get valueFunc(): string {
    return this.M.valueFunc;
  }

  get valueFuncTag(): string {
    return this.M.valueFuncTag;
  }

  get valueFuncTag2(): string {
    return this.M.valueFuncTag2;
  }

  get ignoreEmpty(): boolean {
    return this.M.ignoreEmpty != null ? this.M.ignoreEmpty : false;
  }
  get cls(): string {
    return 'PSDEDQFieldConditionImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._3a1) return true;
    return super.instanceof(cls);
  }
}
